﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Vue.Admin.Models.Dto
{
    public class ChangePassWordDto
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名必填")]
        [Display(Name = "用户名")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码必填")]
        [Display(Name = "密码")]
        [DataType(DataType.Password)]
        public string PassWord { get; set; }
        /// <summary>
        /// 确认密码
        /// </summary>
        [Required(ErrorMessage = "确认密码必填")]
        [Display(Name = "确认密码")]
        [DataType(DataType.Password)]
        [Compare("PassWord", ErrorMessage = "确认密码必须与密码相同")]
        public string ConfirmPassWord { get; set; }
    }
}
